package hu.csicso.ultimatesoftware;
import java.awt.Label;
import java.awt.Toolkit;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.swing.JFrame;

public class ultimateSoftware extends JFrame{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		new ultimateSoftware();
		new LoginDialog();
		
		
		
	}

	ultimateSoftware(){
		Toolkit tk = Toolkit.getDefaultToolkit();
		int frameWidth = (int)tk.getScreenSize().width;
	    int frameHeight = (int)tk.getScreenSize().height;
	    this.setLocation(frameWidth/4, frameHeight/4);
		this.setSize(frameWidth/2, frameHeight/2);
		
		
		System.out.println(now());
		Label ido = new Label(now());
		this.add(ido);
		this.setVisible(true);
	}
	public static String now() {
	    Calendar cal = Calendar.getInstance();
	    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
	    return sdf.format(cal.getTime());

	 }
}
